package arithmetic;
//100-1000的水仙花数
public class Arithmetic6 {
    public static void main(String[] args) {
        int a,b,c;
        for (int i = 100; i <1000 ; i++) {
             a = i/100;
             b = i%100/10;
             c = i%10;
             int d = a*a*a+b*b*b+c*c*c;
            if(d==i){
                System.out.println(i);
            }
            
        }
    }
}
